package com.groupseven.happycampus.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @CreateTime: 2022-07-25 21:44
 * @author: bestzqw
 * @Description:  对应数据库中的library_student
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {

    private Integer id ;

    private String  name;

    private String sex;

    private String grade;

    private String profession;

    private String studentId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm" ,timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm" ,timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date overTime;

    private String roomId;
    /**
     * 该状态表示学生是否已到
     * 0 false 表示未到
     * 1 true 表示到了
     *
     */
    private Boolean status;
}
